import Vue from 'vue'
import Router from 'vue-router'
import todolist from '@/components/todolist'
import selfarticle from '@/components/article'
import myElementUi from '@/components/ElementUi'
import shoppingMall from '@/components/shoppingMall'
import home from '@/components/home.vue'
import ajax from '@/components/ajax.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/todolist',
      name: 'todolist',
      component: todolist
    },
    {
      path: '/myarticle',
      name: 'selfarticle',
      component: selfarticle
    },
    {
      path: '/'
    },
    {
      path: '/ElementUi',
      name: 'element-ui',
      component: myElementUi
    },
    {
      path: '/mall',
      name: 'shoppingMall',
      component: shoppingMall
    },
    {
      path:'/home',
      name:'homepage',
      component:home
    },
    {
      path:'/ajax',
      name:'ajax',
      component:ajax
    }
  ]
})
